package cs236369.webserver.DTOs;

public class ServerConfigDTO {
	private final String baseDir;
	private final int listeningPort;
	private final int numOfSocketThreads;
	private final int numOfReqHandlerThreads;
	private final int sizeOfSocketQueue;
	private final int sizeOfReqQueue;
	private final String welcomeFilename;

	public ServerConfigDTO(String baseDir, int listeningPort, int numOfSocketThreads,
			int numOfReqHandlerThreads, int sizeOfSocketQueue,
			int sizeOfReqQueue, String welcomeFilename) {

		this.baseDir = baseDir;
		this.listeningPort = listeningPort;
		this.numOfSocketThreads = numOfSocketThreads;
		this.numOfReqHandlerThreads = numOfReqHandlerThreads;
		this.sizeOfSocketQueue = sizeOfSocketQueue;
		this.sizeOfReqQueue = sizeOfReqQueue;
		this.welcomeFilename = welcomeFilename;

	}

	@Override
	public String toString() {
		return "ServerConfigDTO [baseDir=" + baseDir + ", listeningPort="
				+ listeningPort + ", numOfSocketThreads=" + numOfSocketThreads
				+ ", numOfReqHandlerThreads=" + numOfReqHandlerThreads
				+ ", sizeOfSocketQueue=" + sizeOfSocketQueue
				+ ", sizeOfReqQueue=" + sizeOfReqQueue + ", welcomeFilename="
				+ welcomeFilename + "]";
	}

	public String getBaseDir() {
		return baseDir;
	}

	public int getListeningPort() {
		return listeningPort;
	}

	public int getNumOfSocketThreads() {
		return numOfSocketThreads;
	}

	public int getNumOfReqHandlerThreads() {
		return numOfReqHandlerThreads;
	}

	public int getSizeOfSocketQueue() {
		return sizeOfSocketQueue;
	}

	public int getSizeOfReqQueue() {
		return sizeOfReqQueue;
	}

	public String getWelcomeFilename() {
		return welcomeFilename;
	}

}
